import $http from '../request';
const URL_PREFIX = "/feature/busiAttr";

export const $BusinessAttrApi = {

	/**
	 * 新增
	 * @param param
	 * @returns {Promise<*>}
	 */
	create: (param) => {
		return $http.$post(URL_PREFIX + "/create", param, {});
	},

	/**
	 * 更新
	 * @param param
	 * @returns {Promise<*>}
	 */
	update: (param) => {
		return $http.$post(URL_PREFIX + "/update", param, {});
	},

	list: (param) => {
		return $http.$post(URL_PREFIX + "/list", param, {});
	},

	/**
	 * 批量删除
	 * @param param
	 * @returns {Promise<*>}
	 */
	removeByIds: (param) => {
		return $http.$post(URL_PREFIX + "/removeByIds", param, {});
	},


	/**
	 * 查询业务属性树形数据
	 * @returns {Promise<*>}
	 */
	listTree: (param) => {
		return $http.$get(URL_PREFIX + "/listTree", param, {})
	},


}



